package com.wsc.wisdomchina.presenter;

import android.content.Context;
import android.icu.util.IslamicCalendar;
import android.util.Log;

import com.loopj.android.http.RequestParams;
import com.wsc.wisdomchina.Tools.Tools;
import com.wsc.wisdomchina.callback.ContributorView;
import com.wsc.wisdomchina.constant.Constant;
import com.wsc.wisdomchina.httpUtils.HttpHeadParams;
import com.wsc.wisdomchina.httpUtils.LoadCacheResponseLoginouthandler;
import com.wsc.wisdomchina.httpUtils.LoadDatahandler;
import com.wsc.wisdomchina.httpUtils.RequstClient;

import java.lang.ref.ReferenceQueue;
import java.util.Date;

/**
 *
 */
public class ContributorPresenter {
    private ContributorView contributorView;
    private Context context;

    public ContributorPresenter(ContributorView contributorView, Context context) {
        this.context = context;
        this.contributorView = contributorView;
    }

    /**
     * 无网络参数的Get请求
     *
     * @param url
     * @param flag 标识
     */
    private void getAsyncMessage(String url, final String flag) {
        getAsyncMessage(url, null, flag);
    }

    /**
     * 无网络参数的post请求
     *
     * @param url
     * @param flag 标识
     */
    private void postAsyncMessage(String url, final String flag) {
        postAsyncMessage(url, null, flag);
    }

    /**
     * 有网络参数的Get请求
     *
     * @param url
     * @param requestParams 网络参数
     * @param flag          标识
     */
    private void getAsyncMessage(String url, RequestParams requestParams, final String flag) {
        RequstClient.get(url, requestParams, new LoadCacheResponseLoginouthandler(context, new LoadDatahandler() {
            @Override
            public void onStart() {
                super.onStart();
                if (contributorView != null) {
                    contributorView.onLoadContributorStart(flag);
                }
            }

            @Override
            public void onSuccess(String data) {
                // TODO Auto-generated method stub
                super.onSuccess(data);
                if (contributorView != null) {
                    contributorView.onLoadContributorSuccess(data, flag);
                }
            }

            @Override
            public void onFailure(String error, String message) {
                // TODO Auto-generated method stub
                super.onFailure(error, message);
                if (contributorView != null) {
                    contributorView.onLoadContributorError(message, flag);
                }
            }

            @Override
            public void onFinish() {
                // TODO Auto-generated method stub
                super.onFinish();
                if (contributorView != null) {
                    contributorView.onLoadContributorComplete(flag);
                }
            }

        }));
    }

    /**
     * 有网络参数的post请求
     *
     * @param url
     * @param requestParams 网络参数
     * @param flag          标识
     */
    private void postAsyncMessage(String url, RequestParams requestParams, final String flag) {
        RequstClient.post(url, requestParams, new LoadCacheResponseLoginouthandler(context, new LoadDatahandler() {
            @Override
            public void onStart() {
                // TODO Auto-generated method stub
                super.onStart();
                if (contributorView != null) {
                    contributorView.onLoadContributorStart(flag);
                }
            }

            @Override
            public void onSuccess(String data) {
                // TODO Auto-generated method stub
                super.onSuccess(data);
                if (contributorView != null) {
                    contributorView.onLoadContributorSuccess(data, flag);
                }
            }

            @Override
            public void onFailure(String error, String message) {
                // TODO Auto-generated method stub
                super.onFailure(error, message);
                if (contributorView != null) {
                    contributorView.onLoadContributorError(message, flag);
                }
            }

            @Override
            public void onFinish() {
                // TODO Auto-generated method stub
                super.onFinish();
                if (contributorView != null) {
                    contributorView.onLoadContributorComplete(flag);
                }
            }

        }));
    }

    public void getUserSendVcode(String phone, int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.TYPE, type);
            postAsyncMessage(Constant.USER_SEND_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postSendCode(String phone, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            postAsyncMessage(Constant.VERIFICATION_SEND_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUserJudgeVcode(String phone, String vcode, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.VCODE, vcode);
            postAsyncMessage(Constant.USER_JUDGE_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getVerificationComplete(String phone, String pCode, String streetId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PCODE, pCode);
            requestParams.put(Constant.STREETID, streetId);
            postAsyncMessage(Constant.VERIFICATION_JUDGE_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUserSetInfo(String cid, String phone, String pwd, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PWD, pwd);
            postAsyncMessage(Constant.USER_SET_INFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUserLogin(String phone, String pwd, String jpush_id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PWD, pwd);
            requestParams.put(Constant.JPUSH_ID,jpush_id);
            postAsyncMessage(Constant.USER_LOGIN, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 生活缴费公司列表
     *
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param cid       街道ID
     * @param flag
     */
    public void getHomeItemList(String projectId, String cid, String flag) {
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.CID, cid);
        getAsyncMessage(Constant.HOMEITEMLIST, requestParams, flag);
    }

    /**
     * 生活缴费公司列表
     *
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param itemId    货源ID
     * @param flag
     */
    public void getHomeItemName(String projectId, String itemId, String flag) {
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.ITEMID, itemId);
        getAsyncMessage(Constant.HOMEITEMNAME, requestParams, flag);
    }

    /**
     * 生活缴费公司列表
     *
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param itemId    货源ID
     * @param flag
     */
    public void getHomeSetUpInput(String projectId, String account, String itemId, String cid, String flag) {
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.ACCOUNT, account);
        requestParams.put(Constant.ITEMID, itemId);
        requestParams.put(Constant.CID, cid);
        getAsyncMessage(Constant.HOMESETUPINPUT, requestParams, flag);
    }

    /**
     * 生活缴费公司列表
     *
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param itemId    货源ID
     * @param flag
     */
    public void postHomePay(String uid, Double poundage, String projectId, String account, String unitName, String month, String customerName, String customerAddress, String cid, Double money, String itemId, String flag) {
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.UID, uid);
        requestParams.put(Constant.POUNDAGE, poundage);
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.ACCOUNT, account);
        requestParams.put(Constant.UNITNAME, unitName);
        requestParams.put(Constant.MONTH, month);
        requestParams.put(Constant.CUSTOMERNAME, customerName);
        requestParams.put(Constant.CUSTOMERAddress, customerAddress);
        requestParams.put(Constant.CID, cid);
        requestParams.put(Constant.MONEY, money);
        requestParams.put(Constant.ITEMID, itemId);
        postAsyncMessage(Constant.HOMEPAY, requestParams, flag);
    }

    public void getMyModuleInfo(String uid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.MY_MODELU_INFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getConvenienceDefaultServiceAddr(String uid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.CONVENIENCEDEAFULTSERVICEADDR, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取街道ID
     *
     * @param city
     * @param county
     * @param flag
     */
    public void getHomeFetchStreet(String city, String county, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.COUNTY, county);
            requestParams.put(Constant.CITY, city);
            //幸福清河
//            getAsyncMessage(Constant.HOME_FETCH_STREET, requestParams, flag);
            //幸福桃花
            getAsyncMessage(Constant.HOME_FETCH_TAOHUASTREET, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getConvenienceLifeserviceBook(String uid, String serverId, String addrId, String upDoorDate, int playTime, String message, int auntNumber,
                                              String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SERVERID, serverId);
            requestParams.put(Constant.ADDRID, addrId);
            requestParams.put(Constant.UPDOORDATE, upDoorDate);
            requestParams.put(Constant.PLAYTIME, playTime);
            requestParams.put(Constant.MESSAGE, message);
            requestParams.put(Constant.AUNTNUMBER, auntNumber);
            postAsyncMessage(Constant.CONVENIENCELIFESERVICEBOOK, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getUserUpdatePwd(String phone, String pwd, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PWD, pwd);
            postAsyncMessage(Constant.USER_UPDATE_PWD, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMyIp(String flag) {
        try {
            getAsyncMessage(Constant.MyIp, flag);
        } catch (Exception e) {
        }
    }

    public void getHomeBanner(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.HOME_BANNER, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHomeModule(String cid, int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE, type);
            getAsyncMessage(Constant.HOME_MODULE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getConvenienceModule(String streetId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            getAsyncMessage(Constant.CONVENIENCE_MODULE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getModule(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, cid);
            getAsyncMessage(Constant.MODULE_LIST_URL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHomeModuleList(String cid, int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE, type);
            getAsyncMessage(Constant.HOME_MODULELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddressListGetByIdMem(String pId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.pId, pId);
            getAsyncMessage(Constant.ADDRESSLIST_GETBYIDMEM, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddressListGetByTypeIdMemList(String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.ADDRESSLiST_GETBYTYPEIDMEMLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getNoticeGetBulletinList(String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETBULLETINLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getNoticeOnClickBulletin(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.ONCLICKBULLETIN, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getActivityList(String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETACTIVITYLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getMyActivityList(String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETMYACTIVITYLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getActivityOne(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.GETACTIVITYONE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postEnrollActivity(String memId, String contactNumber, String activityId, String memName, String sex, String remark, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.memId, memId);
            requestParams.put(Constant.contactNumber, contactNumber);
            requestParams.put(Constant.activityId, activityId);
            requestParams.put(Constant.memName, memName);
            requestParams.put(Constant.SEX, sex);
            requestParams.put(Constant.REMARK, remark);
            postAsyncMessage(Constant.ENROLLACTIVITY, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLearnTypeList(String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETLEARNTYPELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLearnContentList(String typeId, int skip, int limit, String memId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.TYPEID, typeId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.memId, memId);
            getAsyncMessage(Constant.GETLEARNCONTENTLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOnlineExamList(String streetId, int skip, int limit, String memId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.memId, memId);
            getAsyncMessage(Constant.GETONLINEEXAMLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOnlineExamOne(String pmcId, String memId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PMCId, pmcId);
            requestParams.put(Constant.memId, memId);
            getAsyncMessage(Constant.GETONLINEEXAMONE, requestParams, flag);
        } catch (Exception e) {

        }
    }

    public void getExercises(String pmcId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PMCId, pmcId);
            getAsyncMessage(Constant.GETEXERCISES, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getLearnContentOne(String id,String memId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.memId,memId);
            getAsyncMessage(Constant.GETLEARNCONTENTOne, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postLearnSchedule(String contentId, String learnSchedule, String learnUser, String recordId, int status, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.contentId, contentId);
            requestParams.put(Constant.learnSchedule, learnSchedule);
            requestParams.put(Constant.learnUser, learnUser);
            requestParams.put(Constant.recordId, recordId);
            requestParams.put(Constant.STATUS, status);
            postAsyncMessage(Constant.LEARNSCHEDULE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postSubmitCheckRecord(String checkId, String memId, String streetId, String answers, String mName, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.checkId, checkId);
            requestParams.put(Constant.memId, memId);
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.answers, answers);
            requestParams.put(Constant.mName, mName);
            postAsyncMessage(Constant.SUBMITCHeCKRECORD, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommitteeDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.COMMITTEEDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBusinessPromotionDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.BUSINESSPROMOTIONDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMessageDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.MessageBYID, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHomeBannerDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.HOME_BANNER_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBusinessApplyList(String id, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.TYPEID, id);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.BUSINESSAPPLYLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAroundFindList(String cid, int type, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE, type);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.AROUNDFINDLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLookList(String cid, String typeid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPEID, typeid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.STREETNEWSSERVICELOOKLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getBuildingList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.BUILDING_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMPANY_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLookListDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.LOOKLIST_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBusinessApplyDetail(String id, String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.BUSINESSAPPLYDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMyModuleState(String uid, String streetId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.STREETID, streetId);
            getAsyncMessage(Constant.MY_MODULE_STATE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingActivityList(String cid, int type, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.TYPE, type);
            getAsyncMessage(Constant.BUILDING_ACTIVITY_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getModuleEventList(String cid, String menuId , int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put("menuId", menuId);
            getAsyncMessage(Constant.MODULE_EVENT_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityOlderList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYOLDERLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityHandicapList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYHANDICAPLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMyModuleMessage(String uid, String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.STREETID, streetId);
            getAsyncMessage(Constant.MYMODULEMESSAGE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getActivitySignup(String uid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYMODULEBUILDINGCOMMNIYTACTIVITYSIGNUP, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getQiYeFaBu(String uid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYMODULECOMPANYELEASE, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getPeopleFeedbackList(String uid, String streetId,int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYPEOPLEFEEDBACKLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getJuWeiInfoList(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.COMMITTEELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLifeServiceList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.LifeServiceList, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBusinessPromotionList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.BUSINESSPROMOTIONLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getStreetFeatures(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.STREETFEATURES, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getMyModuleApply(String uid, int state, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.STATE, state);
            getAsyncMessage(Constant.MODULEMYAPPLY, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMyModuleApplyInfo(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.MYMODULEMYAPPLYINFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityGetMyserver(String uid, int type, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.TYPE, type);
            getAsyncMessage(Constant.COMMUNITYGETMYSERVER, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOlderOrganiationDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.OLDERORGANIZATIONDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAroundFindDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.AROUNDFINDDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHandicapOrganizationDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.HANDICAPORGANIZATIONDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityOlderOrganizationList(String id,int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put("pid", id);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYOLDERORGANIZATIONLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityHandicapOrganizationList(String id,int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put("pid", id);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYHANDICAPORGANIZATIONLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUploadCommonParamsPicList(String params, String pic, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PARAMS, params);
            requestParams.put(Constant.PIC, pic);
            postAsyncMessage(Constant.UPLOADCOMMONPARAMSPICLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMoreSubmitOpinion(String uid, String content, String cid, String phone,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.CONTENT, content);
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.CID, cid);
            postAsyncMessage(Constant.MORE_SUBMIT_OPINION, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddAddress(String uid, String name, String phone, String addressHead, String addressFoot, int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.NAME, name);
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.ADDRESSHEAD, addressHead);
            requestParams.put(Constant.ADDRESSFOOT, addressFoot);
            requestParams.put(Constant.TYPE, type);
            postAsyncMessage(Constant.SERVICE_ADDR_ADD, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddrUpdate(String uid, String id, String name, String phone, String addressHead, String addressFoot, int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.NAME, name);
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.ADDRESSHEAD, addressHead);
            requestParams.put(Constant.ADDRESSFOOT, addressFoot);
            requestParams.put(Constant.TYPE, type);
            postAsyncMessage(Constant.SERVICE_ADDR_UPDATE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getDelAddress(String uid, String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.ID, id);
            postAsyncMessage(Constant.SERVICE_ADDR_DEL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUpdateNickName(String uid, String nickName, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.NICKNAME, nickName);
            postAsyncMessage(Constant.MY_MODULE_UPDATE_NICKNAME, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUpdatePhone(String uid, String phone, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.PHONE, phone);
            postAsyncMessage(Constant.MY_MODULE_UPDATE_PHONE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUploadPic(String uid, String pic, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.PIC, pic);
            postAsyncMessage(Constant.MY_MODULE_UPLOAD_PIC, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAdministrationTeenagers(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.ADMINISTRATIONTEENAGERS, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingReleaseDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.BUILDINGRELEASEDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getBuildingDetail(String bid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, bid);
            getAsyncMessage(Constant.BUILDINGDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLifeServiceDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.LIFESERVICEDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyDetail(String cid, String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.COMPANYDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyReleaseDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.COMPANYReleaseDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getBuildingSearch(String cid, String name, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.NAME, name);
            getAsyncMessage(Constant.BUILDINGSEARCH, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getEnterpriseSearch(String cid, String name, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.NAME, name);
            getAsyncMessage(Constant.ENTERPRISESEARCH, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingActivityDetail(String bid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.BID, bid);
            getAsyncMessage(Constant.BUILDINGACTIVITYDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getModuleEventDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.MODULE_EVENT_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getUploadCommonPicList(String pic, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PIC, pic);
            postAsyncMessage(Constant.UPLOAD_COMMON_PIC_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getReleaseBuilding(String cid, String uid, String name, String sex, String img, String mobile, String building_name, String office_area, String sell_area, String commercial_area, String addr, String intro, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.NAME, name);
            requestParams.put(Constant.SEX, Integer.parseInt(sex));
            requestParams.put(Constant.IMG, img);
            requestParams.put(Constant.MOBILE, mobile);
            requestParams.put(Constant.BUILDING_NAME, building_name);
            if (office_area != null && !office_area.isEmpty())
                requestParams.put(Constant.OFFICE_AREA, Double.parseDouble(office_area));
            if (sell_area != null && !sell_area.isEmpty())
                requestParams.put(Constant.SELL_AREA, Double.parseDouble(sell_area));
            if (commercial_area != null && !commercial_area.isEmpty())
                requestParams.put(Constant.COMMERCIAL_AREA, Double.parseDouble(commercial_area));
            requestParams.put(Constant.ADDR, addr);
            if (intro != null && !intro.isEmpty())
                requestParams.put(Constant.INTRO, intro);
            postAsyncMessage(Constant.RELEASE_BUILDING, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getFeedbackSubmit(String cid, String uid, String type, String release_name, String title, String addr, String content, String img, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.TYPE, type);
            requestParams.put(Constant.RELEASENAME, release_name);
            requestParams.put(Constant.TITLE, title);
            requestParams.put(Constant.ADDR, addr);
            requestParams.put(Constant.CONTENT, content);
            requestParams.put(Constant.IMG, img);
            postAsyncMessage(Constant.FEEDBACKSUBMIT, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getReleaseCompany(String cid, String uid, String name, String sex, String mobile, String company_name, String building_name, String scale, String range, String website, String addr, String intro, String img, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.NAME, name);
            requestParams.put(Constant.GENDER, Integer.parseInt(sex));
            requestParams.put(Constant.PHONE, mobile);
            requestParams.put(Constant.COMPANYNAME, company_name);
            if (building_name != null && !building_name.isEmpty())
                requestParams.put(Constant.BUILDINGNAME, building_name);
            if (scale != null && !scale.isEmpty())
                requestParams.put(Constant.SCALE, scale);
            if (range != null && !range.isEmpty())
                requestParams.put(Constant.RANGE, range);
            if (website != null && !website.isEmpty())
                requestParams.put(Constant.WEBSITE, website);
            requestParams.put(Constant.ADDR, addr);
            if (intro != null && !intro.isEmpty())
                requestParams.put(Constant.INTRO, intro);
            requestParams.put(Constant.IMG, img);
            postAsyncMessage(Constant.RELEASE_COMPANY, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingActivitySignup(String uid, String cid, String bid, String name, int sex, String mobile, String content, int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.BID, bid);
            requestParams.put(Constant.NAME, name);
            requestParams.put(Constant.SEX, sex);
            requestParams.put(Constant.MOBILE, mobile);
            requestParams.put(Constant.CONTENT, content);
            requestParams.put(Constant.TYPE, type);
            postAsyncMessage(Constant.BUILDINGACTIVITYSIGNUP, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMoreUserProtocol(String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            getAsyncMessage(Constant.MORE_USER_PROTOCOL, flag);
        } catch (Exception e) {
        }
    }

    public void getPeopleSuperviseList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.PEOPLESUPERVISELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getFeedBackDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.FEEDBACKDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getFeedBackType(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.FEEDBACKTYPE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingCommunityActivityDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.BUILDINGCOMMUNITYACTIVITYDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getParyApplyActivityDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.PARTY_ACTIVITY_APPLY_DETIAL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBaiXingJianDuDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.PEOPLE_FEEDBACK_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOfficeDuty(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.OFFICEDUTY, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getFeaturesDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.STREETFEATURESDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getGridManagementList(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.GRIDMANAGEMENTLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getStreetInfo(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.STREETINFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddrList(String uid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.SERVICE_ADDR_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingReleaseDelete(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.BUILDINGRELEASEDELETE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyReleaseDelete(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.COMPANYRELEASEDELETE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityActivityDelete(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.COMMUNITYACTIVITYDELET, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLightHouseDelete(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.LIGHTHOUSEDELETE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityDelServerById(String id, int type, int subType, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.TYPE, type);
            requestParams.put(Constant.SUBTYPE, subType);
            postAsyncMessage(Constant.COMMUNITYDELSERVERBYID, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getDelMyApplyById(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            postAsyncMessage(Constant.DelMyAPPLYURL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityUpdateServerById(String id, int type, int subType, int score, String remarks, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.TYPE, type);
            requestParams.put(Constant.SUBTYPE, subType);
            requestParams.put(Constant.SCORE, score);
            requestParams.put(Constant.REMARKS, remarks);
            postAsyncMessage(Constant.COMMUNITYUPDATESERVERBYID, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAssessApplyById(String id, int score, String remarks, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.SCORE, score);
            requestParams.put(Constant.REMARKS, remarks);
            postAsyncMessage(Constant.ASSESSAPPLY, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getVersionInfo(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.SYSTEMNEWVERSIONINFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityBussinessApplyTitleList(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.BUSINESSAPPLYTITLELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAroundFindTitleList(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.AROUNDFINDTITLELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getTabTitleList(String cid, String menuid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, cid);
            requestParams.put("menuId", menuid);
            getAsyncMessage(Constant.MODULE_TABS_URL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLookAllList(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.LOOKALLLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postPmiVerification(String streetId, String phone, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.PHONE, phone);
            postAsyncMessage(Constant.PMIVERIFICATION, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunitySlSubmit(String uid, String cid, int type, int subType, String obj, String previousId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE, type);
            requestParams.put(Constant.SUBTYPE, subType);
            requestParams.put(Constant.OBJ, obj);
            requestParams.put(Constant.PREVIOUSID, previousId);
            postAsyncMessage(Constant.COMMUNITYSLSUBMIT, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 党建资讯
     *
     * @param streetId
     * @param skip
     * @param limit
     * @param flag
     */

    public void getPartyInfomation(String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.PARTY_INFOMATION, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 党建资讯详情
     *
     * @param streetId
     * @param skip
     * @param limit
     * @param flag
     */
  
    public void getPartyInfomationDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.PARTY_INFOMATIONDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取领导列表
     *
     * @param cid   街道id
     * @param skip
     * @param limit
     * @param flag
     */
    public void getLeaderList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.LEADER_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取领导列表
     *
     * @param cid   街道id
     * @param skip
     * @param limit
     * @param flag
     */
    public void getOrganizationList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.ORGANIZATION_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取领导详情
     *
     * @param id
     * @param flag
     */
    public void getLeaderDetails(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.LEADER_DETAILS, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取机构设置详情
     *
     * @param id
     * @param flag
     */
    public void getOrganizationDetails(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.ORGANIZATION_DETAILS, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getJobList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.JOB_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getJobHuntDetail(String bid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, bid);
            getAsyncMessage(Constant.JOB_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getJobHuntSearch(String cid, String name, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.NAME, name);
            getAsyncMessage(Constant.JOB_SEARCH, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHouseList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.HOUSE_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getHouseDetail(String bid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, bid);
            getAsyncMessage(Constant.HOUSE_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getHouseSearch(String cid, String name, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.NAME, name);
            getAsyncMessage(Constant.HOUSE_SEARCH, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getEducationList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.EDUCATION_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getEducationDetail(String bid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, bid);
            getAsyncMessage(Constant.EDUCATION_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getEducationSearch(String cid, String name, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.NAME, name);
            getAsyncMessage(Constant.EDUCATION_SEARCH, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getNoticeList(String cid, int type, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE, type+"");
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.NOTICE_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getModuleItemList(String cid, String menuid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put("menuId", menuid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MODULE_TAB_DATA_URL, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getNoticeDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.NOTICE_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getModuleItemDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put("informationId", id);
            getAsyncMessage(Constant.MODULE_ITEM_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getWelareList(String cid, int type, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.TYPE, type);
            getAsyncMessage(Constant.WELFARE_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getWelareDetail(String bid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, bid);
            getAsyncMessage(Constant.WELFARE_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getWelfareSignup(String uid, String cid, String bid, String name, int sex, String mobile,String mark, int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.BID, bid);
            requestParams.put(Constant.NAME, name);
            requestParams.put(Constant.SEX, sex);
            requestParams.put(Constant.MOBILE, mobile);
             requestParams.put(Constant.CONTENT, mark);
            requestParams.put(Constant.TYPE, type);
            postAsyncMessage(Constant.WELFARE_SIGNUP, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取党员活动报名列表
     *
     * @param memId
     * @param skip
     * @param limit
     * @param flag
     */
    public void getPartyActivityApplyList(String memId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.memId, memId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.PARTY_ACTIVITY_APPLY, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 删除/取消党建活动报名
     *
     * @param id
     * @param flag
     */
    public void deletePartyapply(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            postAsyncMessage(Constant.PARTY_ACTIVITY_APPLY_DELETE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 交流园地
     * @param streetId
     * @param skip
     * @param limit
     * @param flag
     */
    public void getInterflowList(String streetId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETINTERFLOW, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 帖子详情
     * @param flag
     */
    public void getInterflowDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.GETINTERFLOWDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取我的帖子
     * @param createUserId
     * @param skip
     * @param limit
     * @param flag
     */
    public void getMyInterflowList(String createUserId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CreateUserId, createUserId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYGETINTERFLOW, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取我的帖子
     * @param createUserId
     * @param skip
     * @param limit
     * @param flag
     */
    public void getFlowList(String parentId, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PARENTID, parentId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYGETFLOWLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 发帖
     * @param createUserId
     * @param skip
     * @param limit
     * @param flag
     */
    public void postAddTie(String parentId, String title, String content,String images, String createUserId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            if(parentId!=null)
                requestParams.put(Constant.PARENTID, parentId);
            if(title!=null)
                requestParams.put(Constant.TITLE, title);
            if(content!=null)
                requestParams.put(Constant.CONTENT, content);
            if(images!=null)
                requestParams.put(Constant.IMAGES,images);
            if(createUserId!=null)
                requestParams.put(Constant.CreateUserId,createUserId);
            postAsyncMessage(Constant.ADDFATIE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void sendShakeData(String uid,String activeid, int count,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.ID, activeid);
            requestParams.put("count", count);
            getAsyncMessage(Constant.SHAKE_POST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void freshShakeData(String uid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.SHAKE_FRESH, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void sendUserShake(String uid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.SHAKE_SEND, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getShakeResult(String uid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.SHAKE_RESULT, requestParams, flag);
        } catch (Exception e) {
        }
    }
  /**
     * 获取用户首页显示项
     * @param streetId 街道id
     * @param uid type为1且用户已登录时需要传uid
     * @param type 1-常用项, 2-政务百事通, 3-邻里服务
     * @param flag
     */
    public void getAppManageShowItem(String streetId, String uid,int type,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            if(uid!=null)
                requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.TYPE, type);
            getAsyncMessage(Constant.APPMANAGESHOWITEM, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取資訊列表
     * @param streetId
     * @param menuId
     * @param skip
     * @param limit
     * @param flag
     */
    public void getInformationList(String streetId, String menuId,int skip,int limit,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.MENUID, menuId);
            requestParams.put(Constant.SKIP,skip);
            requestParams.put(Constant.LIMIT,limit);
            getAsyncMessage(Constant.MENUSERVERINFOLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取資訊详情
     * @param id
     * @param flag
     */
    public void getInformationDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.INFORMATIONID, id);
            getAsyncMessage(Constant.MENUSERVERINFODETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取活动列表
     * @param streetId
     * @param menuId
     * @param skip
     * @param limit
     * @param flag
     */
    public void getActivityList(String streetId, String menuId,int skip,int limit,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.MENUID, menuId);
            requestParams.put(Constant.SKIP,skip);
            requestParams.put(Constant.LIMIT,limit);
            getAsyncMessage(Constant.ACTIVITYLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取活动详情
     * @param id
     * @param flag
     */
    public void getActivityDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.MENUSERVERACTIVITYDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 根据父id查子id
     * @param streetId
     * @param menuId
     * @param flag
     */
    public void getChildrenMenuserver(String streetId,String menuId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.MENUID,menuId);
            getAsyncMessage(Constant.MENUSERVERGETCHILDREN, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 獲取街道版塊
     * @param streetId
     * @param flag
     */
    public void getShowItemSections(String streetId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            getAsyncMessage(Constant.SHOWITEMSECTIONS, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 保存排版
     * @param uid
     * @param menuIds
     * @param flag
     */
    public void postSaveMySection(String uid,String menuIds,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.MENUIDS,menuIds);
            postAsyncMessage(Constant.SAVEMYSECTION, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     *
     * @param uid
     * @param menuIds
     * @param flag
     */
    public void getSkin(String streetId,String uid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.UID,uid);
            postAsyncMessage(Constant.GETMYSKIN, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     *
     * @param uid
     */
    public void logout(String uid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID,uid);
            getAsyncMessage(Constant.LOGOUT, requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getEnterpriseId(String streetId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID,streetId);
            getAsyncMessage(Constant.ENTERPRISE, requestParams, flag);
        } catch (Exception e) {
        }
    }
}
